package com.msh.artascope.devcloud.service.service;

import com.msh.artascope.devcloud.service.model.query.JenkinsConfigQueryVo;
import com.msh.artascope.devcloud.service.model.vo.JenkinsConfigVo;
import com.msh.artascope.devcloud.client.po.JenkinsConfigPo;
import com.msh.artascope.devcloud.client.qo.JenkinsConfigQo;
import com.msh.frame.client.base.TenantBaseService;
import com.msh.frame.client.common.Result;
import java.util.List;

/**
 * @author shihu
 * @mail m-sh@qq.com
 */
public interface JenkinsConfigService extends TenantBaseService<JenkinsConfigPo,JenkinsConfigQo> {


// ----------前端vo处理-------------------------------------------------------

  JenkinsConfigPo getByEnvId(Long envId, Long tenantId);

  /**
   * id查询
   * @param id 主键id
   * @return  查询Vo列表
   */
  JenkinsConfigVo getVo(Long id, Long tenantId);

  /**
   * 查询
   * @param q 查询QueryVo
   * @return  查询Vo列表
   */
  List<JenkinsConfigVo> listVo(JenkinsConfigQueryVo q);

  /**
   * 分页查询
   * @param q 查询QueryVo
   * @return  分页查询Po列表
   */
  Result<List<JenkinsConfigVo>> pageVo(JenkinsConfigQueryVo q);


}
